package com.flurry.android;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import com.millennialmedia.android.MMAdView;
import com.millennialmedia.android.MMSDK;

final class fo extends AdNetworkView
{
  private static final String p = fo.class.getSimpleName();
  private final String hJ;
  private final String q;

  fo(Context paramContext, FlurryAds paramFlurryAds, cw paramcw, AdCreative paramAdCreative, Bundle paramBundle)
  {
    super(paramContext, paramFlurryAds, paramcw, paramAdCreative);
    this.q = paramBundle.getString("com.flurry.millennial.MYAPID");
    this.hJ = paramBundle.getString("com.flurry.millennial.MYAPIDRECTANGLE");
    setFocusable(true);
  }

  public final void initLayout(Context paramContext)
  {
    int i = 50;
    int j = getAdCreative().getWidth();
    int k = getAdCreative().getHeight();
    String str1 = p;
    Object[] arrayOfObject1 = new Object[2];
    arrayOfObject1[0] = Integer.valueOf(j);
    arrayOfObject1[1] = Integer.valueOf(k);
    Log.d(str1, String.format("Ad space width: %d Ad space height: %d", arrayOfObject1));
    MMAdView localMMAdView;
    int m;
    if (((j >= 320) && (k >= i)) || ((j >= 300) && (k >= 250)))
    {
      localMMAdView = new MMAdView((Activity)paramContext);
      setId(MMSDK.getDefaultAdId());
      if ((j >= 320) && (k >= i))
      {
        localMMAdView.setApid(this.q);
        if ((j >= 728) && (k >= 90))
        {
          m = 728;
          i = 90;
        }
      }
    }
    while (true)
    {
      String str2 = p;
      Object[] arrayOfObject2 = new Object[2];
      arrayOfObject2[0] = Integer.valueOf(m);
      arrayOfObject2[1] = Integer.valueOf(i);
      Log.d(str2, String.format("Determined Millennial AdSize as %d x %d", arrayOfObject2));
      localMMAdView.setWidth(m);
      localMMAdView.setHeight(i);
      setHorizontalScrollBarEnabled(false);
      setVerticalScrollBarEnabled(false);
      setGravity(17);
      localMMAdView.setListener(new fn(this));
      addView(localMMAdView);
      localMMAdView.getAd();
      return;
      if ((j >= 480) && (k >= 60))
      {
        m = 480;
        i = 60;
        continue;
        if ((j >= 300) && (k >= 250))
        {
          localMMAdView.setApid(this.hJ);
          i = 250;
          m = 300;
          continue;
          Log.d(p, "**********Could not load Millennial Ad");
        }
      }
      else
      {
        m = 320;
      }
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.fo
 * JD-Core Version:    0.6.2
 */